<%--
  01_jspExample.jsp
  User: PING
  Date: 2022/9/7
  Time: 9:50
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<meta charset="UTF-8">
<head>
    <%!
        class Person {


        }

        public static void f() {

        }
        // define a var
        int COUNT = 0 ;

    %>
    <title>jsp example</title>
    <link rel="stylesheet" href="../css/main.css"/>
    <style>
        .show_info {
            font-size:28px;
            text-align: center;
            padding-top:10px;
            height:700px;
        }
    </style>
</head>
<body>
<!--
    Scriptlet
-->
<%

    String encoding = request.getCharacterEncoding() ;
    request.setCharacterEncoding("UTF-8");
    String username = request.getParameter("username") ;
    Person person = new Person() ;
    int countNum = 0 ;
    f() ;
%>
    <div class="container">
        <div class="logo">
        </div>
        <hr>
        <div class="main">
            <div class="show">
                <h2>演示部分</h2>
                <div class="show_info">

                    <h3>九九乘法表</h3>
                    <h4>页面被访问： <%= ++ countNum%></h4>
                    <h4>页面被范文：<%= ++COUNT%> </h4>
                    <table align="center" border="1px"   cellpadding="5px">
                        <% for (int i=0; i<9; i++) {%>
                        <tr>
                            <% for (int j=0; j<9;j++) { %>
                                <td><%=(i>=j?((i+1)+"*" + (j+1)+"="+(i+1)*(j+1)):"")%></td>
                            <% }%>

                        </tr>
                        <%}%>
                    </table>



                </div>
            </div>
        </div>

    </div>
    <footer>
        <div class="copyright">
            JAVA WEB &copy; FJNU
        </div>
    </footer>


</body>
</html>
